cmake_minimum_required(VERSION 3.4)

project(log VERSION 1.0.0 LANGUAGES CXX)

option(NOSAL_ENABLE_DOXYGEN "Enables the documentation target" OFF)


include(GNUInstallDirs)
include(NOSAL/nosal)
include(NOSAL/toolchain_qnx700_aarch64)

find_package(nosal-core REQUIRED)

find_package(PkgConfig REQUIRED)

#add_subdirectory(doc)

add_subdirectory(src)

if(NOSAL_ENABLE_TESTS)
    #find_package(GTest REQUIRED)
    #find_library(GMOCK gmock)
    #enable_testing()
    add_subdirectory(test)
endif()


# Install header files
install(
    DIRECTORY include/
    DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
    COMPONENT dev
    FILES_MATCHING PATTERN "*.h"
)

